package zero.tech.wsnet.net;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import zero.tech.core.ZeroContext;

public abstract class DiscoveryCoreContext implements ApplicationListener<ContextRefreshedEvent> {
	@Override
	public void onApplicationEvent(ContextRefreshedEvent event) {
		ApplicationContext applicationContext = ZeroContext.applicationContext;
		onApplicationStart(applicationContext);
	}

	public abstract void onApplicationStart(ApplicationContext applicationContext);
}
